package com.zscat.mallplus.sms.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zscat.mallplus.utils.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 首页轮播广告表
 * </p>
 *
 * @author zscat
 * @since 2019-04-19
 */
@TableName("sms_home_advertise")
public class SmsHomeAdvertise extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	@TableField("name")
	private String name;

	/**
	 * 轮播位置：1->小程序首页轮播；2->商城首页轮播
	 */
	@TableField("type")
	private Integer type;

	@TableField("pic")
	private String pic;

	@TableField("start_time")
	private Date startTime;

	@TableField("end_time")
	private Date endTime;

	/**
	 * 上下线状态：0->下线；1->上线
	 */
	@TableField("status")
	private Integer status;

	/**
	 * 点击数
	 */
	@TableField("click_count")
	private Integer clickCount;

	/**
	 * 下单数
	 */
	@TableField("order_count")
	private Integer orderCount;

	/**
	 * 链接地址
	 */
	@TableField("url")
	private String url;

	/**
	 * 备注
	 */
	@TableField("note")
	private String note;

	/**
	 * 排序
	 */
	@TableField("sort")
	private Integer sort;

	@TableField(value = "product_id", strategy = FieldStrategy.IGNORED)
	private Long productId;

	@TableField(value = "category_id", strategy = FieldStrategy.IGNORED)
	private Long categoryId;

	@TableField(value = "subject_id", strategy = FieldStrategy.IGNORED)
	private Long subjectId;

	@TableField(value = "subject_type", strategy = FieldStrategy.IGNORED)
	private Integer subjectType;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getClickCount() {
		return clickCount;
	}

	public void setClickCount(Integer clickCount) {
		this.clickCount = clickCount;
	}

	public Integer getOrderCount() {
		return orderCount;
	}

	public void setOrderCount(Integer orderCount) {
		this.orderCount = orderCount;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
	public Long getSubjectId() {
		return subjectId;
	}

	public void setSubjectId(Long subjectId) {
		this.subjectId = subjectId;
	}

	public Integer getSubjectType() {
		return subjectType;
	}

	public void setSubjectType(Integer subjectType) {
		this.subjectType = subjectType;
	}

	@Override
	public String toString() {
		return "SmsHomeAdvertise{" + ", id=" + id + ", name=" + name + ", type=" + type + ", pic=" + pic
				+ ", startTime=" + startTime + ", endTime=" + endTime + ", status=" + status + ", clickCount="
				+ clickCount + ", orderCount=" + orderCount + ", url=" + url + ", note=" + note + ", sort=" + sort
				+ "}";
	}

	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public Long getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}
}
